package ${companyPackage}.model.${package};
import java.io.Serializable;
import lombok.Data;
<#--需要导入的包-->
<#if importList?exists>
    <#list importList as import>
import ${import};        
     </#list>
</#if>
<#--bean相关的注解，自己配置全路径-->
import org.nutz.dao.entity.annotation.Table;
import org.nutz.dao.entity.annotation.Column;
<#if hasId?exists>
import org.nutz.dao.entity.annotation.Id;
</#if>
<#if hasName?exists>
import org.nutz.dao.entity.annotation.Name;
</#if>
	<#if pkAnno?exists>
import org.nutz.dao.entity.annotation.PK;
	</#if>
@Data
@Table("${tableName}")
<#if pkAnno?exists>${pkAnno}</#if>
public class ${beanName} implements Serializable{
    <#--所包含的字段-->
	<#if fieldList?exists>
    	<#list fieldList as field>
    		<#if fieldComment[field]?has_content>/** ${fieldComment[field]} */</#if>
    	<#if field2ann[field]?exists> @${field2ann[field]}<#if auto?exists&&field2ann[field]=="Id">(auto=false)</#if><#if field2ann[field]!="Id"&&field2ann[field]!="Name"> ("${field2column[field]}") </#if> </#if>
    		private ${field2type[field]} ${field};
    	</#list>
	</#if>
	<#--所包含的字段end-->
}
